package cn.touna.jss.modules.custom.auth;

import cn.touna.jss.common.enums.IntfScopeEnum;
import cn.touna.jss.modules.adapter.ApiMapping;
import cn.touna.jss.modules.custom.auth.entity.AuthHistoryEntity;
import cn.touna.jss.modules.credit.service.AuthHistoryService;
import cn.touna.risk.api.domain.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Steve.Tao on 2017/11/3.
 */
@Service
public class AuthHistoryQueryService {

    @Autowired
    private AuthHistoryService authHistoryService;

    @ApiMapping(value = "AuthHistory.getAuthHistory",desc = "内部数据.查询认证历史",
            recordHistory = false,scope = IntfScopeEnum.JSS_INTF_SYSTEM)
    public Response getAuthHistory(AuthHistoryEntity authHistoryEntity) {
        return authHistoryService.getAuthHistory(authHistoryEntity.getIdCard(), authHistoryEntity.getMobile());
    }
}
